-
Notifications
You must be signed in to change notification settings - Fork 35
Gerald - Onboarding #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Create main.css Create get httprequest.
…for grid headings and records.
Foundational setup
Create http request in typescript. Update css, and data table.
Convert data to be usable for functions.
Use data from server
render table records and headings to html
Refactor code and add comments
…uide Edit code to meet code style requirements
fix navigation
Code refactoring
|
Please remove your |
I removed the files and changed gitignore file. |
FritzOnFire
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have a lot of variables and statements executing in global space which is generally frown'd upon. For this project, there are a few that we are ok with being in global space, but you are running a lot of them without waiting for the page to even finish loading.
Reworked global variables
combine code in app.ts script
FritzOnFire
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please read up on window.onload. All of this global space statements are really bothering me. Please move them somewhere more sane. Please change all of your comments for functions and classes to JavaDoc style. Please do not use an interface before you have defined it (HasFormatMethod) and finally, it really looks like your formatter is not kicking in. I will send you my vscode settings incase you can not get your formatting working.
app.ts
Outdated
| let totalNumofRecords: number; | ||
| let clickTimeout: ReturnType<typeof setTimeout>; | ||
| let fromID = 1; | ||
| let toID = numOfRows; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think all of these need to be global, especially numofrows
nkosimarz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The structure is definitely cleaner, LGTM
|
|
||
| /** | ||
| * This event executes two funtions immediately after the page loads | ||
| * @function HFM.getColumnHeadings This is a function that gets the column headings from the back-end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer this pattern for comments: @function HFM.getColumnHeadings gets the column heading ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I'll quickly change the comments to your suggestion
No description provided.